<#assign disabledFirst = "<a disabled>首页</a>"/>
<#assign disabledPrior = "<a disabled>上页</a>"/>
<#assign disabledNext = "<a disabled>下页</a>"/>
<#assign disabledLast = "<a disabled>尾页</a>"/>
<#assign enabledFirst = "<a href='" + uri + "?" + pageNumberParamName + "=1" + url + "'>首页</a>"/>
<#assign enabledPrior = "<a href='" + uri + "?" + pageNumberParamName + "=" + (pageNumber - 1) + url + "'>上页</a>"/>
<#assign enabledNext = "<a href='" + uri + "?" + pageNumberParamName + "=" + (pageNumber + 1) + url + "'>下页</a>"/>
<#assign enabledLast = "<a href='" + uri + "?" + pageNumberParamName + "=" + pageCount + url + "'>尾页</a>"/>
<#assign info = "共" + pageNumber + "/" + pageCount + "页&nbsp;" + pageSize + "条/页&nbsp;共" + recordCount + "条记录"/>
<#if pageCount <= 1>
${disabledFirst} ${disabledPrior} ${disabledNext} ${disabledLast} ${info}
<#else>
<#if pageNumber == 1>
${disabledFirst} ${disabledPrior} ${enabledNext} ${enabledLast} ${info}
</#if>
<#if (pageNumber > 1) && (pageNumber < pageCount)>
${enabledFirst} ${enabledPrior} ${enabledNext} ${enabledLast} ${info}
</#if>
<#if pageNumber == pageCount>
${enabledFirst} ${enabledPrior} ${disabledNext} ${disabledLast} ${info}
</#if>
</#if>